﻿
@{
    ViewBag.Title = "Main";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


           @Ajax.ActionLink("Create New Category", "EditPopUp", "Category",
        new { id = Guid.Empty},
                          new AjaxOptions() { HttpMethod = "Get", InsertionMode = InsertionMode.Replace, UpdateTargetId = "btn_CreatNew" }) 
                      
          
                      @Ajax.ActionLink("Create", "EditPopUp", "Website",
        new { id = Guid.Empty},
                 new AjaxOptions() { HttpMethod = "Get", InsertionMode = InsertionMode.Replace, UpdateTargetId = "btn_CreatNew"})
                      <div id="btn_CreatNew"></div>
<h2>Main</h2>
<div id="displayAllCategories">

    @{Html.RenderAction("DisplayAllCategoriesPartial","Category");}
</div>